//
//  FQDCenterSettingCell.m
//  FakeQDaily
//
//  Created by mewxiv on 9/10/16.
//  Copyright © 2016 Xensius. All rights reserved.
//

#import "FQDCenterSettingCell.h"
#import "FQDSettingOption.h"

@implementation FQDCenterSettingCell
@synthesize option = _option;

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self prepareUI];
    }
    return self;
}

- (void)prepareUI
{
    self.backgroundColor = [UIColor colorWithWhite:0.8f alpha:0.4];
    self.textLabel.textColor = [UIColor whiteColor];
    self.textLabel.textAlignment = NSTextAlignmentCenter;
}

- (void)setOption:(FQDSettingOption *)option
{
    _option = option;
    self.textLabel.text = option.title;
}

+ (NSString *)reuseId
{
    return @"FQDCenterSettingCell";
}

@end
